package zdm.controller;

import zdm.annotation.ZdmController;
import zdm.annotation.ZdmRequestMapping;
import zdm.annotation.ZdmRequestParam;

/**
 * @Author: 张德明
 * @CreateTime: 2025-06-18 11:05:59
 * @Description: 用户接口
 */

@ZdmController
public class UserController {

    @ZdmRequestMapping("/user/info")
    public String getUserInfo() {
        return "User Info: [Name: 张德明, Age: 18]";
    }

    @ZdmRequestMapping("/user/details")
    public String getUserDetails() {
        return "User Details: [Address: 北京, Phone: 1234567890]";
    }

    @ZdmRequestMapping("/user/settings")
    public String getUserSettings() {
        return "User Settings: [Theme: Dark, Notifications: Enabled]";
    }


    @ZdmRequestMapping("/user")
    public String user(@ZdmRequestParam("name") String name) {
        return "欢迎 " + name + " 访问用户页面！";
    }
}
